/********************************************************************************
 *
 *      Copyright:  (C) 2022 Nbiot<lingyun@gail.com>
 *                  All rights reserved.
 *
 *       Filename:  se_at.h
 *    Description:  This head file 
 *
 *        Version:  1.0.0(18/07/22)
 *         Author:  Nbiot <lingyun@gail.com>
 *      ChangeLog:  1, Release initial version on "18/07/22 02:37:08"
 *                 
 ********************************************************************************/
#ifndef _AT_CMD_H
#define _AT_CMD_H

#include <stdio.h>

#include <errno.h>

#include <sys/types.h>

#include <sys/stat.h>


#include <string.h>

#include <unistd.h>
#include <fcntl.h>

 
#include <sys/select.h>

#include <termios.h>

#include <unistd.h>



int at_cmd_check(comport_t *com, char *atcmd, char *expected_recv, char *rmsg, int msgsize, int timeout);

int at_cmd_send(comport_t *com, char *atcmd, char *expected_recv, char *rmsg, int msgsize, int timeout);


int check_com_ready(comport_t *com);

int check_sim_ready(comport_t *com);

int check_sim_login(comport_t *com);

int check_sim_signal(comport_t *com);

int check_sim_allready(comport_t *com);

//检测sim卡是否存在
#endif
